/**
 * Created by qingmai on 2017/2/17.
 */
var gulp = require('gulp'),
    config = require('../config'),
    connect = require('gulp-connect'),
    livereload = require('gulp-livereload');
gulp.task('connect', function() {
    connect.server({
        host: '', //地址，可不写，不写的话，默认localhost
        port: 8081, //端口号，可不写，默认8000
        root: './dist', //当前项目主目录
        livereload: true //自动刷新
    });
});
//执行gulp server开启服务器
gulp.task('server', ['connect', 'sass','html','img','script']);